<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{$theme}/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
<link href="{$theme}/bootstrap-3.3.7-dist/css/ace.min.css" rel="stylesheet">
<link href="{$theme}/bootstrap-3.3.7-dist/css/ace-rtl.min.css" rel="stylesheet">
<link href="{$theme}/bootstrap-3.3.7-dist/css/font-awesome.min.css" rel="stylesheet">
<link href="{$theme}/style/base.css" rel="stylesheet" type="text/css">
<script src="{$theme}/js/jquery.min.js"></script>
<script src="{$theme}/js/jquery.fn.js"></script>
<script src="{$theme}/js/tooltipbox.js"></script>
<script src="{$theme}/js/jquery.form.js"></script>
<script src="{$theme}/js/jquery.cookie.js"></script>
<script src="{$theme}/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script src="{$theme}/bootstrap-3.3.7-dist/js/ace.min.js"></script>
<script src="{$theme}/js/jquery-2.1.1.min.js"></script>
<script src="{$theme}/js/timepicki.js"></script>
<script src="{$theme}/js/jquery.validate.js"></script>
<link href="{$theme}/style/timepicki.css" rel="stylesheet" type="text/css">
<title>智慧校园考勤</title>

</head>

<body class="no-skin">
<div id="navbar" class="navbar navbar-default">
  <div class="navbar-container" id="navbar-container">
    <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler"> <span class="sr-only">Toggle sidebar</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
    <div class="navbar-header pull-left"> <a href="#" class="navbar-brand" style=""> <small id="logo"> <i class="fa fa-leaf" style="content:url({$theme}/images/logo.png);width:30px; height:30px; vertical-align:middle;"> </i> </small> 智慧校园考勤 </a> </div>
    <ul class="nav navbar-top-links navbar-right">
      <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i> </a>
        <ul class="dropdown-menu dropdown-user">
          <li><a href="{siteurl('con=admin/index')}"><i class="fa fa-user fa-fw"></i> {if $smarty.session.admin.type==1}个人信息{else}学校信息{/if}</a></li>
          <li class="divider"></li>
          <li><a href="{siteurl('con=admin/login/logout')}"><i class="fa fa-sign-out fa-fw"></i> 退出登录</a></li>
        </ul>
      </li>
    </ul>
  </div>
</div>
<div class="main-container" id="main-container">
  <div id="sidebar" class="sidebar responsive">
    <ul id="nav-list" class="nav nav-list" style="top: 0px;">
      <li class=""><a href="{siteurl('con=admin/index')}"><i class="menu-icon fa fa-list-alt"></i><span class="menu-text"> {if $smarty.session.admin.type==1}个人信息{else}学校信息{/if} </span></a></li>
{if $smarty.session.admin.type==1}
      <li class=""><a href="#" class="dropdown-toggle"><i class="menu-icon glyphicon glyphicon-book"></i><span class="menu-text"> 学校管理 </span><b class="arrow fa fa-angle-down"></b></a>
        <ul class="submenu">
          <li class=""><a href="{siteurl('con=admin/school')}"><i class="menu-icon fa fa-caret-right"></i> 学校列表 </a></li>
          <li class=""><a href="{siteurl('con=admin/school/edit')}"><i class="menu-icon fa fa-caret-right"></i> 新增学校 </a></li>
        </ul>
      </li>
      <li class=""><a href="#" class="dropdown-toggle"><i class="menu-icon glyphicon glyphicon-book"></i><span class="menu-text"> 域名管理 </span><b class="arrow fa fa-angle-down"></b></a>
        <ul class="submenu">
          <li class=""><a href="{siteurl('con=admin/domain')}"><i class="menu-icon fa fa-caret-right"></i> 域名列表 </a></li>
          <li class=""><a href="{siteurl('con=admin/domain/edit')}"><i class="menu-icon fa fa-caret-right"></i> 新增域名 </a></li>
        </ul>
      </li>
       <li class=""><a href="#" class="dropdown-toggle"><i class="menu-icon glyphicon glyphicon-book"></i><span class="menu-text"> 刷卡间隔管理 </span><b class="arrow fa fa-angle-down"></b></a>
        <ul class="submenu">
          <li class=""><a href="{siteurl('con=admin/car_time')}"><i class="menu-icon fa fa-caret-right"></i> 刷卡间隔 </a></li>
          
        </ul>
      </li>
          <li class=""><a href="#" class="dropdown-toggle"><i class="menu-icon glyphicon glyphicon-book"></i><span class="menu-text"> 出校日期管理 </span><b class="arrow fa fa-angle-down"></b></a>
        <ul class="submenu">
          <li class=""><a href="{siteurl('con=admin/date')}"><i class="menu-icon fa fa-caret-right"></i> 日期列表 </a></li>
          <li class=""><a href="{siteurl('con=admin/date/edit')}"><i class="menu-icon fa fa-caret-right"></i> 新增数据 </a></li>
        </ul>
      </li>
       <li class=""><a href="#" class="dropdown-toggle"><i class="menu-icon glyphicon glyphicon-book"></i><span class="menu-text"> 进出时间段管理 </span><b class="arrow fa fa-angle-down"></b></a>
        <ul class="submenu">
          <li class=""><a href="{siteurl('con=admin/period')}"><i class="menu-icon fa fa-caret-right"></i> 时间段列表 </a></li>
          <li class=""><a href="{siteurl('con=admin/period/edit')}"><i class="menu-icon fa fa-caret-right"></i> 新增时间段 </a></li>
        </ul>
      </li>
{else}      
      <li class=""><a href="#" class="dropdown-toggle"><i class="menu-icon glyphicon glyphicon-user"></i><span class="menu-text"> 常用功能 </span><b class="arrow fa fa-angle-down"></b></a>
        <ul class="submenu">
          <li class=""><a href="{siteurl('con=admin/student')}"><i class="menu-icon fa fa-caret-right"></i> 学生管理 </a></li>
          <li class=""><a href="{siteurl('con=admin/classes')}"><i class="menu-icon fa fa-caret-right"></i> 班级管理 </a></li>
          <li class=""><a href="{siteurl('con=admin/teacher')}"><i class="menu-icon fa fa-caret-right"></i> 老师管理 </a></li>
          <li class=""><a href="{siteurl('con=admin/notice')}"><i class="menu-icon fa fa-caret-right"></i> 通知公告 </a></li>
        </ul>
      </li>
      <li class=""><a href="#" class="dropdown-toggle"><i class="menu-icon glyphicon glyphicon-user"></i><span class="menu-text"> 设备管理 </span><b class="arrow fa fa-angle-down"></b></a>
        <ul class="submenu">
          <li class=""><a href="{siteurl('con=admin/device')}"><i class="menu-icon fa fa-caret-right"></i> 设备列表 </a></li>
          <li class=""><a href="{siteurl('con=admin/device/edit')}"><i class="menu-icon fa fa-caret-right"></i> 新增设备 </a></li>
        </ul>
      </li>
      <li class=""><a href="#" class="dropdown-toggle"><i class="menu-icon glyphicon glyphicon-user"></i><span class="menu-text"> 考勤管理 </span><b class="arrow fa fa-angle-down"></b></a>
        <ul class="submenu">
          <li class=""><a href="{siteurl('con=admin/shuttle')}"><i class="menu-icon fa fa-caret-right"></i> 考勤记录 </a></li>
        </ul>
      </li>
{/if}
    </ul>
  </div>